import Vue from 'vue'
import store from './store'
import initApp from './app'
import mixins from './mixins'

/**
 * 初始化
 * @param {Object} options 初始化配置参数
 */

export default function (options) {

	console.info(window.location.href)

	const vm = new Vue({
		mixins, store,
		...options
	})

	window.app = initApp({ store, vm })

	if(process.env.MOCK){
		require('../../../../mock')
	}

}